﻿#define _CRT_SECURE_NO_WARNINGS
//#include "RBTree.h"
#include "set.h"
#include "map.h"
using namespace std;
void test_map()
{
	map<string, string> dict;
	dict.insert({ "sort", "排序" });
	dict.insert({ "left", "左边" });
	dict.insert({ "right", "右边" });
	dict["left"] = "左边，剩余";
	dict["insert"] = "插入";
	dict["string"];
	map<string, string>::iterator it = dict.begin();
	while (it != dict.end())
	{
		// 不能修改first，可以修改second
		//it->first += 'x';
		it->second += 'x';
		cout << it->first << ":" << it->second << endl;
		++it;
	} 
	cout << endl;
}
int main()
{
	/*set<int> ha;
	ha.insert(10);
	ha.insert(11);
	ha.insert(12);
	ha.insert(13);*/
	//ha.Inorder();
	test_map();

	int x = 0;
}